<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<title>直播频道</title>
<link type="text/css" href="css/reset.css" rel="stylesheet" />
<link type="text/css" href="css/public.css" rel="stylesheet" />
<link type="text/css" href="css/style.css" rel="stylesheet" />
<link type="text/css" href="css/wode.css" rel="stylesheet" />
<script>
    var deviceWidth = Math.min(640, window.innerWidth)
    document.documentElement.style.fontSize = deviceWidth / 7.5 + "px"
</script>
 <script src="js/jquery-3.0.0.min.js"></script>
 <script src="js/core.js"></script>
<script src="js/2.1.0zhibo.js"></script>
</head>

<body>
<!-- top -->
<div class="header"> 
    <header class="p_header public-red">
        <a href="javascript:history.go(-1);" class="p_header_left">
            <i class="p_left" title="返回"></i>
        </a>
        <h1 class="p_dizhi">直播频道</h1>
    </header>
</div>
<!--直播频道-->
<div class="zhibo_ad" id="zhibotu">
	<a href="#">
		<img src="images/banner02.png" />
	</a>
</div>
<div class="zhibo_title w_xxtaba">
    <ul class="clearfix w_xxtab_tit">
        <li class="curr" id="1s">
            <a  onclick="zhengzaizhibo(1)" >正在直播</a>
        </li>
        <li id="2s">
            <a  onclick="zhengzaizhibo(2)">直播预告</a>
        </li>
        <li id="3s">
            <a  onclick="zhengzaizhibo(3)">精彩回放</a>
        </li>
        <li id="4s">
            <a  onclick="zhengzaizhibo(4)">私密直播</a>
        </li>
    </ul>
    <div class="w_ddcon1">
    	<div class="clearfix" id="zhibos">
    	</div>
    	<div class="clearfix" id="zhibos2">
    	</div>
    	<div class="clearfix" id="zhibos3" >
    	</div>
       <div class="zhibo_simi clearfix" id="zhibos4">
             
        </div>
    </div>
    <div class="w_ddcon1">
        
    </div>
    
</div>
     <input type="hidden" id="tuijians" value="1"/>
<!--弹窗-->
<div class="public_simi_bg" >
	<div class="public_simi">
		<h5 id="dangqian" >全依恋女装服饰</h5>
		<input type="text" id="passwords"  placeholder="输入房间号密码" />
		<input type="hidden" id="zbid" />
		<input type="button" onclick="jingruzb()" value="申请进入" />
	</div>
</div>

<script type="text/javascript" src="js/jquery-1.10.1.min.js"></script>


<script>
	function zhengzaizhibo(tui){
		      if(tui==1){
		      	 $("#zhibos").html("");
		      	 $("#zhibos2").html("");
	 	       $("#zhibos3").html("");
	 	       $("#zhibos4").html("");
	 	      ss2=0;
	 	   ss3=0;
	 	    ss=0;
	 	   ss4=0;
	 	   currentPage=1;
          currentPage2=1;
          currentPage3=1;
          currentPage4=1;
	 	 
	          selectGoodsList21();
	          }else if(tui==2){
	         $("#zhibos").html("");
		      	 $("#zhibos2").html("");
	 	       $("#zhibos3").html("");
	 	       $("#zhibos4").html("");
	 	      ss2=0;
	 	   ss3=0;
	 	    ss=0;
	 	   ss4=0;
	 	   currentPage=1;
          currentPage2=1;
          currentPage3=1;
          currentPage4=1;
	     selectGoodsList22();
	          }else if(tui==3){
	 $("#zhibos").html("");
		      	 $("#zhibos2").html("");
	 	       $("#zhibos3").html("");
	 	       $("#zhibos4").html("");
	 	      ss2=0;
	 	   ss3=0;
	 	    ss=0;
	 	   ss4=0;
	 	   currentPage=1;
          currentPage2=1;
          currentPage3=1;
          currentPage4=1;
	     selectGoodsList23();
	          }else if(tui==4){
	        $("#zhibos").html("");
		      	 $("#zhibos2").html("");
	 	       $("#zhibos3").html("");
	 	       $("#zhibos4").html("");
	 	      ss2=0;
	 	   ss3=0;
	 	    ss=0;
	 	   ss4=0;
	 	   currentPage=1;
          currentPage2=1;
          currentPage3=1;
          currentPage4=1;
	          	simi();
	          }
		$("#tuijians").val(tui);
	}
		 $(window).scroll(function() {
    if ($(document).scrollTop() >= $(document).height() - $(window).height()) {
	          var tui=$("#tuijians").val();
	          if(tui==1){
               currentPage++
	          selectGoodsList21();
	          }else if(tui==2){
	          	currentPage2++
	          	selectGoodsList22();
	          }else if(tui==3){
	            currentPage3++
	          	selectGoodsList23();
	          }else if(tui==4){
	           currentPage4++
	          	selectGoodsList24();
	          }
       }
  });	
	
</script>
<script type="text/javascript">
$(function () {
   $('.w_xxtab_tit li').on('click',function(){
/*        //获得当前被点击的元素索引值
        var Index = $(this).index();
        //给菜单添加选择样式*/
        $(this).addClass('curr').siblings().removeClass('curr');
 /*       //显示对应的div
		$('.w_xxtaba').children('div').eq(Index).show().siblings('div').hide();
        
         */
   });
});
	//关注
	$('.jg_guanzhu').on('click',function(){		
		if($(this).html() == "关注" ){
			$(this).html("取消").css("background","#ccc");
		}else{
			$(this).html("关注").css("background","#FD900F");
		}
	});	
	//分享
	$(function(){
		//弹出
		$('.jg_share').on('click',function(){		
			$("body").append("<div id='mask'></div>");
        	$(".public_share").show();
		});	
		//点击关闭
		$(".public_share_quxiao").on('click',function(){
	        $(".public_share").hide();
	        $("#mask").remove();
	    }) 
	    $("#mask").on('click',function(){
	        $(".public_share").hide();
	        $("#mask").remove();
	    }) 
	});
</script>

</body>
</html>